package com.huijinhui.wlmtsys.pojo.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.huijinhui.wlmtsys.utils.DateUtils;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

//@EqualsAndHashCode(callSuper = true)
@Data
@ApiOperation(value = "NewsPageQuery 新闻分页查询条件")
public class NewsPageQuery  {
    /**
     * 标题
     */
    @Schema(title = "标题", description = "新闻的标题")
    @TableField("title")
    private String title;
    @Schema(title = "更新时间区间的开始时间", example = "2022-7-18 ")
    @DateTimeFormat(pattern = DateUtils.DEFAULT_DATE_TIME_FORMAT)
    private Data beginTime;
    @DateTimeFormat(pattern = DateUtils.DEFAULT_DATE_TIME_FORMAT)
    @Schema(title = "更新时间区间的结束时间", example = "2022-7-18 ")
    private Data endTime;
    /**
     * 内容
     */
    @Schema(title = "内容", description = "新闻的详细内容")
    @TableField("content")
    private String content;
}